<h1>New Realisasi bk</h1>

<form action="<?php echo url_for('realisasibk/create') ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php echo $form->renderHiddenFields(false) ?>
    <table class="form">
        <tfoot>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <input type="submit" value="Simpan" />
                    &nbsp;<a href="<?php echo url_for('realisasibk/index') ?>">Back to list</a>
                </td>
            </tr>
        </tfoot>
        <tbody>
            <?php echo $form->renderGlobalErrors() ?>
            <tr>
                <th><?php echo $form['kegiatan_bk_id']->renderLabel() ?></th>
                <td><?php echo $form['kegiatan_bk_id']->render() ?></td>
            </tr>
            <?php if ($form['kegiatan_bk_id']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['kegiatan_bk_id']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['waktu_mulai']->renderLabel() ?></th>
                <td><?php echo $form['waktu_mulai']->render() ?></td>
            </tr>
            <?php if ($form['waktu_mulai']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['waktu_mulai']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['waktu_akhir']->renderLabel() ?></th>
                <td><?php echo $form['waktu_akhir']->render() ?></td>
            </tr>
            <?php if ($form['waktu_akhir']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['waktu_akhir']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['tempat']->renderLabel() ?></th>
                <td><?php echo $form['tempat']->render() ?></td>
            </tr>
            <?php if ($form['tempat']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['tempat']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['keterangan']->renderLabel() ?></th>
                <td><?php echo $form['keterangan']->render() ?></td>
            </tr>
            <?php if ($form['keterangan']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['keterangan']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['newFile']->renderLabel() ?></th>
                <td>
                    <table>
                        <?php foreach ($form['newFile'] as $eachfile): ?>
                            <tr>
                                <td><?php echo $eachfile['nama']->render() ?></td>
                                <?php if ($eachfile['nama']->hasError()): ?>
                                    <td><?php echo $eachfile['nama']->renderError() ?></td>
                                <?php endif; ?>
                            </tr>
                        <?php endforeach; ?>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</form>